Optimal. Leaf size=94 \[ \frac {a x}{c d}+\frac {b x \tanh ^{-1}(c x)}{c d}+\frac {\left (a+b \tanh ^{-1}(c x)\right ) \log \left (\frac {2}{1+c x}\right )}{c^2 d}+\frac {b \log \left (1-c^2 x^2\right )}{2 c^2 d}-\frac {b \text {PolyLog}\left (2,1-\frac {2}{1+c x}\right )}{2 c^2 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.08, antiderivative size = 94, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 6, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {6077, 6021,
266, 6055, 2449, 2352} \begin {gather*} \frac {\log \left (\frac {2}{c x+1}\right ) \left (a+b \tanh ^{-1}(c x)\right )}{c^2 d}+\frac {a x}{c d}-\frac {b \text {Li}_2\left (1-\frac {2}{c x+1}\right )}{2 c^2 d}+\frac {b \log \left (1-c^2 x^2\right )}{2 c^2 d}+\frac {b x \tanh ^{-1}(c x)}{c d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 266
Rule 2352
Rule 2449
Rule 6021
Rule 6055
Rule 6077
Rubi steps
\begin {align*} \int \frac {x \left (a+b \tanh ^{-1}(c x)\right )}{d+c d x} \, dx &=-\frac {\int \frac {a+b \tanh ^{-1}(c x)}{d+c d x} \, dx}{c}+\frac {\int \left (a+b \tanh ^{-1}(c x)\right ) \, dx}{c d}\\ &=\frac {a x}{c d}+\frac {\left (a+b \tanh ^{-1}(c x)\right ) \log \left (\frac {2}{1+c x}\right )}{c^2 d}+\frac {b \int \tanh ^{-1}(c x) \, dx}{c d}-\frac {b \int \frac {\log \left (\frac {2}{1+c x}\right )}{1-c^2 x^2} \, dx}{c d}\\ &=\frac {a x}{c d}+\frac {b x \tanh ^{-1}(c x)}{c d}+\frac {\left (a+b \tanh ^{-1}(c x)\right ) \log \left (\frac {2}{1+c x}\right )}{c^2 d}-\frac {b \int \frac {x}{1-c^2 x^2} \, dx}{d}-\frac {b \text {Subst}\left (\int \frac {\log (2 x)}{1-2 x} \, dx,x,\frac {1}{1+c x}\right )}{c^2 d}\\ &=\frac {a x}{c d}+\frac {b x \tanh ^{-1}(c x)}{c d}+\frac {\left (a+b \tanh ^{-1}(c x)\right ) \log \left (\frac {2}{1+c x}\right )}{c^2 d}+\frac {b \log \left (1-c^2 x^2\right )}{2 c^2 d}-\frac {b \text {Li}_2\left (1-\frac {2}{1+c x}\right )}{2 c^2 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.10, size = 75, normalized size = 0.80 \begin {gather*} \frac {2 a c x+2 b \tanh ^{-1}(c x) \left (c x+\log \left (1+e^{-2 \tanh ^{-1}(c x)}\right )\right )-2 a \log (1+c x)+b \log \left (1-c^2 x^2\right )-b \text {PolyLog}\left (2,-e^{-2 \tanh ^{-1}(c x)}\right )}{2 c^2 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.28, size = 136, normalized size = 1.45
method | result | size |
derivativedivides | \(\frac {\frac {a c x}{d}-\frac {a \ln \left (c x +1\right )}{d}-\frac {b \arctanh \left (c x \right ) \ln \left (c x +1\right )}{d}+\frac {b \arctanh \left (c x \right ) c x}{d}+\frac {b \ln \left (c x +1\right )^{2}}{4 d}-\frac {b \ln \left (-\frac {c x}{2}+\frac {1}{2}\right ) \ln \left (c x +1\right )}{2 d}+\frac {b \ln \left (-\frac {c x}{2}+\frac {1}{2}\right ) \ln \left (\frac {c x}{2}+\frac {1}{2}\right )}{2 d}+\frac {b \dilog \left (\frac {c x}{2}+\frac {1}{2}\right )}{2 d}+\frac {b \ln \left (\left (c x +1\right ) \left (c x -1\right )\right )}{2 d}}{c^{2}}\) | \(136\) |
default | \(\frac {\frac {a c x}{d}-\frac {a \ln \left (c x +1\right )}{d}-\frac {b \arctanh \left (c x \right ) \ln \left (c x +1\right )}{d}+\frac {b \arctanh \left (c x \right ) c x}{d}+\frac {b \ln \left (c x +1\right )^{2}}{4 d}-\frac {b \ln \left (-\frac {c x}{2}+\frac {1}{2}\right ) \ln \left (c x +1\right )}{2 d}+\frac {b \ln \left (-\frac {c x}{2}+\frac {1}{2}\right ) \ln \left (\frac {c x}{2}+\frac {1}{2}\right )}{2 d}+\frac {b \dilog \left (\frac {c x}{2}+\frac {1}{2}\right )}{2 d}+\frac {b \ln \left (\left (c x +1\right ) \left (c x -1\right )\right )}{2 d}}{c^{2}}\) | \(136\) |
risch | \(-\frac {b \ln \left (c x +1\right )^{2}}{4 d \,c^{2}}+\frac {b x \ln \left (c x +1\right )}{2 d c}+\frac {b \ln \left (c x +1\right )}{2 d \,c^{2}}-\frac {b \ln \left (-c x +1\right ) x}{2 d c}-\frac {b \ln \left (\frac {c x}{2}+\frac {1}{2}\right ) \ln \left (-\frac {c x}{2}+\frac {1}{2}\right )}{2 d \,c^{2}}+\frac {b \ln \left (\frac {c x}{2}+\frac {1}{2}\right ) \ln \left (-c x +1\right )}{2 d \,c^{2}}+\frac {a x}{d c}-\frac {a \ln \left (-c x -1\right )}{d \,c^{2}}-\frac {b \dilog \left (-\frac {c x}{2}+\frac {1}{2}\right )}{2 d \,c^{2}}+\frac {b \ln \left (-c x +1\right )}{2 d \,c^{2}}-\frac {a}{d \,c^{2}}-\frac {b}{2 d \,c^{2}}\) | \(188\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \frac {\int \frac {a x}{c x + 1}\, dx + \int \frac {b x \operatorname {atanh}{\left (c x \right )}}{c x + 1}\, dx}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {x\,\left (a+b\,\mathrm {atanh}\left (c\,x\right )\right )}{d+c\,d\,x} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________